﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace LightControls
{
	public partial class SliderContainer : UserControl
	{
		public SliderContainer()
		{
			InitializeComponent();
			this.Width = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
		}

		protected override void OnPaintBackground( PaintEventArgs e )
		{
		    //Do Nothing
		}

		protected override void OnPaint( PaintEventArgs e )
		{
		    using ( var currentRender = new Bitmap( this.Width, this.Height ) )
		    using ( var currentRenderGraphics = Graphics.FromImage( currentRender ) )
		    {
				
		        e.Graphics.DrawImage(currentRender, 0, 0);
		    }
		}
	}
}
